From: Owen W. Taylor Date: Tue, 22 Mar 2011 14:43:27 +0000 (-0400) Subject: appDisplay: show hover and tooltip while the menu is up X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8536 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=02078255ea00b41ba48e0c35a7837565cdb2797d;p=gnome-shell.git appDisplay: show hover and tooltip while the menu is up While we have menu for an app icon open, we want to show the prelight for the item instead of removing the prelight when the user mouses away from the item and into the menu, and if there's a tooltip (like for the dash), we want to show the tooltip immediately when the menu is popped up. https://bugzilla.gnome.org/show_bug.cgi?id=642871 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index bfe5ff70a..2623a4607 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -513,6 +513,8 @@ AppWellIcon.prototype = { this._menuManager.addMenu(this._menu); } + this.actor.set_hover(true); + this.actor.show_tooltip(); this._menu.popup(); return false; @@ -576,6 +578,9 @@ AppIconMenu.prototype = { PopupMenu.PopupMenu.prototype._init.call(this, source.actor, 0.5, side, 0); + // We want to keep the item hovered while the menu is up + this.blockSourceEvents = true; + this._source = source; this.connect('activate', Lang.bind(this, this._onActivate));